package study;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.web.reactive.function.client.WebClient;

/**
 *  一、配置
 *      1、gateway使用默认路由配置（gatewayIP:gatewayPORT+serviceId+path）时，需要加配置：spring.cloud.gateway.discovery.locator.enabled=true
 *      2、请求路径中允许serviceId为小写（默认是大写的）：spring.cloud.gateway.discovery.locator.lower-case-service-id=true
 *
 *
 * 二、查看网关的路由信息
 * 		1、actuator自带的：http://10.0.68.55:9999/actuator/gateway/routes
 *   	2、自定义的controller：http://10.0.68.55:9999/route/routes
 */
@SpringBootApplication
@EnableEurekaClient
public class GatewayApp1 {
	public static void main(String[] args) {
		SpringApplication application = new SpringApplication(GatewayApp1.class);
		ConfigurableApplicationContext context = application.run(args);

		System.out.println("============springCloud-gateway-end=======================");
	}

}
